#if !defined(AFX_LineWnd_H__CD195C4A_CEAE_415E_83A3_AE063ADF0ABC__INCLUDED_)
#define AFX_LineWnd_H__CD195C4A_CEAE_415E_83A3_AE063ADF0ABC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LineWnd.h : header file
//
#include "stdafx.h"


#define LINEWND_CLASSNAME		_T("LiigoLine")
class CLineWnd_PropertyInfo : public CPropertyInfo
{
public:
	DWORD m_Version, m_LastVersion;
	DWORD m_Direction;
	COLORREF m_LineColor, m_LineColor_Inverse;
	DWORD m_LineWidth;


private:

public:
	CLineWnd_PropertyInfo ()  { }

	virtual void init ();
	virtual BOOL Serialize (CArchive& ar);
};


/////////////////////////////////////////////////////////////////////////////
// CLineWnd window


class CLineWnd : public CWnd
{
// Construction
public:
	CLineWnd();

// Attributes
public:
	DWORD m_dwWinFormID, m_dwUnitID;
	BOOL m_blInDesignMode;
	
	CLineWnd_PropertyInfo m_Properties;
private:
	BOOL m_bNeedSetRgn;

// Operations
public:

	BOOL Create (HWND hParentWnd, DWORD dwStyle, UINT uID, INT x, INT y, INT cx, INT cy);
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLineWnd)
	protected:
	virtual void PostNcDestroy();
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetDirection(int direction);
	void SetLineWidth(int width);
	void SetLineColor(COLORREF color);
	BOOL Initialize(void);
	static COLORREF GetInverseColor(COLORREF color);
	virtual ~CLineWnd();

	// Generated message map functions
protected:
	//{{AFX_MSG(CLineWnd)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BOOL RegisteMyClass(LPCTSTR className);
};

/////////////////////////////////////////////////////////////////////////////



//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LineWnd_H__CD195C4A_CEAE_415E_83A3_AE063ADF0ABC__INCLUDED_)
